package ${package.Convert};

import ${package.Dto}.${dto};
import ${package.Entity}.${entity};
import ${package.Vo}.${vo};
import org.mapstruct.InheritConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * <p>
 * ${table.comment!} 类型转换
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Mapper
public interface ${convert} {

    ${convert} INSTANCE = Mappers.getMapper(${convert}.class);

    /**
     * dto to entity
     */
    @InheritConfiguration
    ${entity} dtoToEntity(${dto} dto);

    /**
     * entity to dto
     */
    @InheritConfiguration
    ${dto} entityToDto(${entity} entity);

    /**
     * entity to dto
     */
    @InheritConfiguration
    ${vo} entityToVo(${entity} entity);

    /**
     * entity to dto
     */
    @InheritConfiguration
    List<${vo}> entityToVo(List<${entity}> list);


}

